home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1995 September / PCD0995.ISO / files / shared.dir / 05282_Shared Movie Scripts.ls < prev    next >
Encoding:
Text File  |  1994-12-18  |  5.4 KB  |  198 lines

  1. global demoQTstate, cDemoQT
  2.  
  3. on volumeLevel changeType
  4.   global WhichSprite, cAudioLevel, gSoundlevel
  5.   set WhichSprite to the clickOn
  6.   puppetSprite(WhichSprite, 1)
  7.   set the castNum of sprite WhichSprite to the number of cast (the name of cast the castNum of sprite WhichSprite && "lit")
  8.   puppetSprite(cAudioLevel, 1)
  9.   if changeType = #up then
  10.     if gSoundlevel < 6 then
  11.       set gSoundlevel to gSoundlevel + 1
  12.     end if
  13.   else
  14.     if gSoundlevel > 1 then
  15.       set gSoundlevel to gSoundlevel - 1
  16.     end if
  17.   end if
  18.   set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  19.   puppetSound("click")
  20.   updateStage()
  21.   repeat while the stillDown
  22.     if changeType = #up then
  23.       if gSoundlevel < 6 then
  24.         set gSoundlevel to gSoundlevel + 1
  25.       end if
  26.     else
  27.       if gSoundlevel > 0 then
  28.         set gSoundlevel to gSoundlevel - 1
  29.       end if
  30.     end if
  31.     set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  32.     updateStage()
  33.     waitFor(0.10000000000000001)
  34.   end repeat
  35.   puppetSprite(WhichSprite, 0)
  36.   set the soundLevel to gSoundlevel
  37. end
  38.  
  39. on volumeLevelUp
  40.   global WhichSprite, cAudioLevel, gSoundlevel
  41.   set WhichSprite to the clickOn
  42.   puppetSprite(WhichSprite, 1)
  43.   set the castNum of sprite WhichSprite to the number of cast "Volume up lit"
  44.   puppetSprite(cAudioLevel, 1)
  45.   if gSoundlevel < 6 then
  46.     set gSoundlevel to gSoundlevel + 1
  47.   end if
  48.   set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  49.   puppetSprite(WhichSprite, 0)
  50.   set the soundLevel to gSoundlevel
  51.   updateStage()
  52. end
  53.  
  54. on volumeLevelDown
  55.   global WhichSprite, cAudioLevel, gSoundlevel
  56.   set WhichSprite to the clickOn
  57.   puppetSprite(WhichSprite, 1)
  58.   set the castNum of sprite WhichSprite to the number of cast "Volume down lit"
  59.   puppetSprite(cAudioLevel, 1)
  60.   if gSoundlevel > 0 then
  61.     set gSoundlevel to gSoundlevel - 1
  62.   end if
  63.   set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  64.   puppetSprite(WhichSprite, 0)
  65.   set the soundLevel to gSoundlevel
  66.   updateStage()
  67. end
  68.  
  69. on volumeLevelUpQT QTSprite
  70.   global WhichSprite, cAudioLevel, gSoundlevel
  71.   set WhichSprite to the clickOn
  72.   puppetSprite(WhichSprite, 1)
  73.   set the castNum of sprite WhichSprite to the number of cast "Volume up lit"
  74.   puppetSprite(cAudioLevel, 1)
  75.   if gSoundlevel < 6 then
  76.     set gSoundlevel to gSoundlevel + 1
  77.   end if
  78.   set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  79.   puppetSprite(WhichSprite, 0)
  80.   set the soundLevel to gSoundlevel
  81.   set the volume of sprite QTSprite to (gSoundlevel * 32) + 32
  82.   updateStage()
  83. end
  84.  
  85. on volumeLevelDownQT QTSprite
  86.   global WhichSprite, cAudioLevel, gSoundlevel
  87.   set WhichSprite to the clickOn
  88.   puppetSprite(WhichSprite, 1)
  89.   set the castNum of sprite WhichSprite to the number of cast "Volume down lit"
  90.   puppetSprite(cAudioLevel, 1)
  91.   if gSoundlevel > 0 then
  92.     set gSoundlevel to gSoundlevel - 1
  93.   end if
  94.   set the castNum of sprite cAudioLevel to the number of cast ("sound level" && gSoundlevel)
  95.   puppetSprite(WhichSprite, 0)
  96.   set the soundLevel to gSoundlevel
  97.   set the volume of sprite QTSprite to (gSoundlevel * 32) + 32
  98.   updateStage()
  99. end
  100.  
  101. on waitFor seconds
  102.   set now to the timer
  103.   repeat while the timer < (now + (seconds * 60))
  104.     if the mouseDown then
  105.       exit
  106.     end if
  107.   end repeat
  108. end
  109.  
  110. on timeoutProcedure
  111.   go(1, "Intro")
  112. end
  113.  
  114. on mainButtonSelect whichFrame
  115.   go(whichFrame, "Tools")
  116. end
  117.  
  118. on visionSelect whichDirection
  119.   global gpressed
  120.   set WhichSprite to the clickOn
  121.   puppetSprite(WhichSprite, 1)
  122.   set caster to the name of cast the castNum of sprite WhichSprite && "lit"
  123.   set the castNum of sprite WhichSprite to the number of cast caster
  124.   repeat with n = 2 to 3
  125.     if n <> WhichSprite then
  126.       puppetSprite(n, 0)
  127.     end if
  128.   end repeat
  129.   puppetSound("click")
  130.   puppetTransition(3, 128, 0)
  131.   updateStage()
  132.   waitFor(0.10000000000000001)
  133.   puppetSprite(WhichSprite, 0)
  134.   set gpressed to WhichSprite
  135.   if whichDirection = #next then
  136.     go(#next)
  137.   else
  138.     if the frameLabel = EMPTY then
  139.       go(marker(-3))
  140.     else
  141.       go(marker(-2))
  142.     end if
  143.   end if
  144. end
  145.  
  146. on clearPuppets
  147.   repeat with x = 1 to 24
  148.     puppetSprite(x, 0)
  149.   end repeat
  150. end
  151.  
  152. on picSwitcher howMany
  153.   set WhichSprite to the clickOn
  154.   set whichCast to the mouseCast
  155.   puppetSprite(WhichSprite, 1)
  156.   set myName to the name of cast whichCast
  157.   set whichPic to word 1 of myName
  158.   set whichNum to integer(word 2 of myName)
  159.   set whichNum to whichNum + 1
  160.   if whichNum = (howMany + 1) then
  161.     set whichNum to 1
  162.   end if
  163.   set the castNum of sprite WhichSprite to the number of cast (whichPic && string(whichNum))
  164.   updateStage()
  165. end
  166.  
  167. on checkDepth
  168.   repeat with x = 1 to 6000
  169.     if the castType of cast x = #bitmap then
  170.       if the depth of cast x > 8 then
  171.         put "Bad cast at cast number" && string(x)
  172.       end if
  173.     end if
  174.   end repeat
  175.   beep(3)
  176. end
  177.  
  178. on checkitout maxScoreFrame, whichCast
  179.   repeat with x = 1 to maxScoreFrame
  180.     go(x)
  181.     repeat with y = 1 to 48
  182.       if the castNum of sprite y = whichCast then
  183.         put "Cast" && string(whichCast) && "found in sprite" && string(y) && "at frame" && string(x)
  184.       end if
  185.     end repeat
  186.   end repeat
  187. end
  188.  
  189. on bitdepther howMany
  190.   repeat with x = 1 to howMany
  191.     if the castType of cast x = #bitmap then
  192.       if the depth of cast x > 8 then
  193.         put "Castmember" && string(x) && "has a color depth of" && the depth of cast x
  194.       end if
  195.     end if
  196.   end repeat
  197. end
  198.